Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add experimental support to expand helm templates in qbec #8

Merged
merged 2 commits into from
Apr 1, 2019

Conversation

gotwarlost
Copy link
Contributor

@gotwarlost gotwarlost commented Mar 31, 2019

add a new native function called expandHelmTemplate that accepts a chart name,
values as a JSON object and additional helm options. Since native functions do not
have caller context, the caller needs to pass a thisFile value in the options
object for relative references to charts succeed. This should be set to std.thisFile

This allows a jsonnet caller to produce a list of objects by running helm template
and return them, possibly modifying them as needed.

@gotwarlost gotwarlost force-pushed the helm branch 2 times, most recently from 3d3341a to 884e4d9 Compare April 1, 2019 16:10
@gotwarlost gotwarlost changed the title [WIP} add expandHelmTemplate as a native function in qbec add expandHelmTemplate as a native function in qbec Apr 1, 2019
@gotwarlost gotwarlost force-pushed the helm branch 4 times, most recently from 1c19f65 to d1f3d29 Compare April 1, 2019 16:46
add a new native function called `expandHelmTemplate` that accepts a chart name,
values as a JSON object and additional helm options. Since native functions do not
have caller context, the caller needs to pass a `thisFile` value in the options
object for relative references to charts succeed. This should be set to `std.thisFile`

This allows a jsonnet caller to produce a list of objects by running `helm template`
and return them, possibly modifying them as needed.
@gotwarlost gotwarlost changed the title add expandHelmTemplate as a native function in qbec add experimental support to expand helm templates in qbec Apr 1, 2019
@gotwarlost gotwarlost merged commit bccb53f into master Apr 1, 2019
@gotwarlost gotwarlost deleted the helm branch April 1, 2019 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant